import pytest
#把log_mail文件的两个方法导入run
from log_mail import log_set,send_mail
if __name__ == '__main__':
    log_set()
    pytest.main(["-s","testcase.py","--alluredir=./baogaodata","--clean-alluredir"])
    import os
    os.system("allure generate ./baogaodata -o ./report --clean")
    send_mail(["log.txt"])